/**
 * Daten Kapselung
 * @author admin
 */
package temprom.GUI;

import java.util.Date;
import javax.swing.JButton;


/**
 *
 * @author admin
 */
public class FrmData extends javax.swing.JPanel {

    /**
     *
     */
    public static JButton b1;
    /**
     * Creates new form FrmData
     */
    public FrmData() {
        super();
        initComponents();
        b1 = btnExport;
        add(b1);
    }
    
    /**
     *
     * @return
     * Uebernimmt Datum zeit Daten
     */
    public Date GetDateFrom()
    {
        return dateTimePicker1.getDate();
    }
    /**
     *
     * @return
     * Uebernimmt Datum zeit Daten
     */
    public Date GetDateTill()
    {
        return dateTimePicker2.getDate();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jSpinField1 = new com.toedter.components.JSpinField();
        lblTitleExport = new javax.swing.JLabel();
        lblVon = new javax.swing.JLabel();
        lblBis = new javax.swing.JLabel();
        btnExport = new javax.swing.JButton();
        dateTimePicker1 = new com.lavantech.gui.comp.DateTimePicker();
        dateTimePicker2 = new com.lavantech.gui.comp.DateTimePicker();

        setName("pnlData"); // NOI18N

        lblTitleExport.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        lblTitleExport.setText("Zeitfenster angeben");

        lblVon.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        lblVon.setText("Von");

        lblBis.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        lblBis.setText("Bis");

        btnExport.setText("Export");

        dateTimePicker1.setPattern("dd.MM.yy HH:mm:ss");

        dateTimePicker2.setPattern("dd.MM.yy HH:mm:ss");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnExport, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblTitleExport, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dateTimePicker1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblVon))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblBis)
                            .addComponent(dateTimePicker2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(33, 33, 33))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(lblTitleExport, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVon)
                            .addComponent(lblBis))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dateTimePicker1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(dateTimePicker2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 94, Short.MAX_VALUE)
                .addComponent(btnExport, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnExport;
    private com.lavantech.gui.comp.DateTimePicker dateTimePicker1;
    private com.lavantech.gui.comp.DateTimePicker dateTimePicker2;
    private com.toedter.components.JSpinField jSpinField1;
    private javax.swing.JLabel lblBis;
    private javax.swing.JLabel lblTitleExport;
    private javax.swing.JLabel lblVon;
    // End of variables declaration//GEN-END:variables
}
